﻿
namespace OpenSunTracker.RestClient
{
    /// <summary>
    /// represents an container specialized for an ost-state
    /// </summary>
    public class SystemState
    {
        #region CTOR
        public SystemState()
        {
        }
        #endregion

        #region Properties
        public string Date { get; set; }
        public string Uptime { get; set; }
        public string Version { get; set; }

        public int FreeBytes { get; set; }

        public string WindSpeed { get; set; }
        public string WindSpeedAverage { get; set; }

        public string MotorState { get; set; }
        public int MotorPosition { get; set; }

        public string TrackingState { get; set; }
        public string TrackingWindAlarm { get; set; }
        public TrackingAction NextTrackingAction { get; set; }
        #endregion

        #region Methods
        public override string ToString()
        {
            var s = "Date: " + Date;
            s += " | Uptime: " + Uptime;
            s += " | Version: " + Version;
            s+= " | FreeBytes: " + FreeBytes;
            s+= " | WindSpeed: " + WindSpeed;
            s += " | WindSpeedAverage: " + WindSpeedAverage;
            s += " | MotorState: " + MotorState;
            s += " | MotorPosition: " + MotorPosition;
            s += " | TrackingState: " + TrackingState;
            s += " | NextTrackingAction: " + NextTrackingAction;

            return s;
        } 
        #endregion
    }
}